The existing xc_domain_dumpcore is very specific to disk/file based
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 13 Mar 2006 10:47:56 +0000 (11:47 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 13 Mar 2006 10:47:56 +0000 (11:47 +0100)
commit8a68ed87f83749bbc21614176e8ae91677746a6f
tree3d5f837846c873df9254909a6ae6b8ea390dc0fa
parenta04a7ff5d7bbbc355cdfedfe71a70b5790626d61
The existing xc_domain_dumpcore is very specific to disk/file based
output.  Refactor the code slightly to allow more user-specified
control.  This is done by adding a parallel
xc_domain_dumpcore_via_callback, which allows the specification of a
callback routine and an opaque argument block.  The existing dumpcore
routine is modified to use the callback for all write operations and
to turn the single seek into a small write (it's for page alignment).

Signed-off-by: Ben Thomas <bthomas@virtualiron.com>
tools/libxc/xc_core.c
tools/libxc/xenctrl.h